gdk: Make GdkDevice axis API internal
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 28 Jul 2020 14:21:47 +0000 (16:21 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 28 Jul 2020 23:27:51 +0000 (01:27 +0200)
All outside interaction happens through gdk_event_get_axis(), no
device poking is necessary, nor axis to array index translations.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkdevice.h
gdk/gdkinternals.h

index 54038d480610e6c023bc97e99aca02d7703ddba8..296a517706c72756eacbd2076ceb68dae3f7bf07 100644 (file)
@@ -355,13 +355,11 @@ gdk_device_get_name
 gdk_device_get_vendor_id
 gdk_device_get_product_id
 gdk_device_get_source
-gdk_device_get_axis_use
 gdk_device_get_associated_device
 gdk_device_list_physical_devices
 gdk_device_get_device_type
 gdk_device_get_display
 gdk_device_get_has_cursor
-gdk_device_get_n_axes
 gdk_device_get_seat
 gdk_device_get_num_touches
 gdk_device_get_device_tool
@@ -375,7 +373,6 @@ gdk_device_has_bidi_layouts
 <SUBSECTION>
 gdk_device_get_surface_at_position
 GdkTimeCoord
-gdk_device_get_axis
 
 <SUBSECTION>
 gdk_device_tool_get_serial
index 0b2482ef747f52a80082501461b573b8ae15fef9..644451a0bfc1cbc8580d39200be1889c236762bb 100644 (file)
@@ -106,24 +106,12 @@ gboolean              gdk_device_get_has_cursor (GdkDevice *device);
 GDK_AVAILABLE_IN_ALL
 GdkInputSource gdk_device_get_source (GdkDevice    *device);
 
-GDK_AVAILABLE_IN_ALL
-GdkAxisUse     gdk_device_get_axis_use  (GdkDevice         *device,
-                                         guint              index_);
-
-
 GDK_AVAILABLE_IN_ALL
 GdkSurface * gdk_device_get_surface_at_position (GdkDevice *device,
                                                  double    *win_x,
                                                  double    *win_y);
 
 GDK_AVAILABLE_IN_ALL
-int      gdk_device_get_n_axes     (GdkDevice       *device);
-GDK_AVAILABLE_IN_ALL
-gboolean gdk_device_get_axis     (GdkDevice         *device,
-                                  double            *axes,
-                                  GdkAxisUse         use,
-                                  double            *value);
-GDK_AVAILABLE_IN_ALL
 GdkDisplay * gdk_device_get_display (GdkDevice      *device);
 
 GDK_AVAILABLE_IN_ALL
index 0a70e407d17e47804680c4f207267714eac2d6dd..b21c74a55d8be07c8401ea34d79a1b6f9dc22e03 100644 (file)
@@ -268,7 +268,13 @@ void gdk_device_ungrab        (GdkDevice        *device,
 void gdk_device_get_position  (GdkDevice        *device,
                                double           *x,
                                double           *y);
-
+int gdk_device_get_n_axes     (GdkDevice       *device);
+gboolean gdk_device_get_axis  (GdkDevice         *device,
+                              double            *axes,
+                              GdkAxisUse         use,
+                              double            *value);
+GdkAxisUse gdk_device_get_axis_use  (GdkDevice         *device,
+                                    guint              index_);
 
 void gdk_surface_get_root_coords (GdkSurface *surface,
                                   int         x,